﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using OSharp.Web.Mvc.Security;

namespace Serenity.Libra.Web.Controllers
{
    public class CommonPageController : Controller
    {
        public ActionResult SelectIcon()
        {
            return View();
        }

        [AjaxOnly]
        public ActionResult IconList()
        {
            var list = new List<dynamic>();
            for (int i = 1; i < 471; i++)
            {
                list.Add(new { id = i, text = string.Format("pic_{0}", i) });
            }
            return Json(list, JsonRequestBehavior.AllowGet);
        }
    }
}